import axios from "axios"
import { getStaffListByBaseId } from "../processingplant"
const http = axios.create({
    baseURL: 'http://120.77.156.205:9605/leader',
    timeout: 18000 // 请求超时时间
})
import request from '../../utils/request/request'
// 投入品库存
export function getInputinventory(id) {
    return http({
        url: `/farming/supply/repertory/baseId/${id}/1/500`,
        method: 'get'
    })
}

// 原辅料库存
export function getRawinventory() {
    return http({
        url: '/processing/fartoryId/1/meterial/repertory/1/500',
        method: 'get'
    })
}
// http://120.77.156.205:9605/leader/processing/factory/count

export function getfactorycount() {
    return http({
        url: '/processing/factory/count',
        method: 'get'
    })
}

export function getOrdersCountByCity() {
    return http({
        url: '/orders/count/amount/groupby/AddressCity',
        method: 'get'
    })
}

export function getfarmingBasecount() {
    return http({
        url: '/farming/farmingBase/count',
        method: 'get'
    })
}

export function getfactoryinfo() {
    return http({
        url: '/processing/factory',
        method: 'get'
    })
}

export function getBaseId() {
    return http({
        url: '/farming/farmingBase',
        method: 'get'
    })
} 

export function farmingproduct() {
    return http({
        url: '/farming/product/repertory/baseId/1/1/500',
        method: 'get'
    })
}

export function supplyin() {
    return http({
        url: '/farming/supply/in/baseId/1/1/500',
        method: 'get'
    })
}

// 原辅料
export function meterial() {
    return http({
        url: '/processing/fartoryId/1/meterial/enter/1/500',
        method: 'get'
    })
}

// 查询投入品供应商的地址
export function getsupplier() {
    return request({
        url: 'breed/supplier/500/1',
        method: 'get'
    })
}